home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / The Hacks / pseudoDoc / Makefile < prev    next >
Encoding:
Makefile  |  2001-06-23  |  1.3 KB  |  41 lines

  1. ##
  2. # Makefile for headerdoc
  3. # Wilfredo Sanchez | wsanchez@apple.com
  4. ##
  5.  
  6. DSTROOT = /tmp/headerdoc/Release
  7.  
  8. bindir  = /usr/bin
  9. docsDir = /Developer/Documentation/DeveloperTools
  10. program1 = headerdoc2html
  11. program2 = gatherheaderdoc
  12.  
  13. perl_libdir := $(shell perl -e 'require Config; print "$$Config::Config{'privlib'}\n";')
  14. startperl   := $(shell perl -e 'require Config; print "$$Config::Config{'startperl'}\n";')
  15.  
  16. all:
  17.  
  18. installsrc:
  19.     mkdir -p "$(SRCROOT)"
  20.     tar cf - . | (cd "$(SRCROOT)" && tar xpf -)
  21.  
  22. installhdrs:
  23.  
  24. build:
  25.  
  26. clean:
  27.  
  28. install:
  29.     umask 022 && install -d $(DSTROOT)$(perl_libdir)/HeaderDoc
  30.     install -c -m 444 Modules/HeaderDoc/*.pm $(DSTROOT)$(perl_libdir)/HeaderDoc
  31.     umask 022 && install -d $(DSTROOT)$(bindir)
  32.     install -c -m 755 headerDoc2HTML.pl $(DSTROOT)$(bindir)/$(program1)
  33.     perl -i -pe 's|^#!/usr/bin/perl.*$$|$(startperl)|;' $(DSTROOT)$(bindir)/$(program1)
  34.     chmod 555 $(DSTROOT)$(bindir)/$(program1)
  35.     umask 022 && install -d $(DSTROOT)$(bindir)
  36.     install -c -m 755 gatherHeaderDoc.pl $(DSTROOT)$(bindir)/$(program2)
  37.     perl -i -pe 's|^#!/usr/bin/perl.*$$|$(startperl)|;' $(DSTROOT)$(bindir)/$(program2)
  38.     chmod 555 $(DSTROOT)$(bindir)/$(program2)
  39.     umask 022 && install -d $(DSTROOT)$(docsDir)/HeaderDoc
  40.     install -c -m 444 Documentation/*.html $(DSTROOT)$(docsDir)/HeaderDoc
  41.